home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-18 | 600 b | 31 lines | [TEXT/PRLG] |
- /* This totally useless procedure ties up Open Prolog just showing the time */
-
- show_time(A) :-
- 'system$seconds'(B),
- (
- (
- B==A
- ->
- true
- )
- ;
- 'system$time'(B,C),
- 'system$owner$name'(E),
- (
- (
- E==''
- ->
- F='It''s '
- )
- ;
- F=' it''s '
- ),
- 'system$set$display'(message,left,E,' it''s ',C,'')
- ),
- show_time(B).
-
- /* Try this:
-
- 'system$push$display'(message,left,'','','',''),show_time(0),'system$pop$display'(message).
-
- */